package ru.xeden.web.html.module;

import java.util.Comparator;

public class ModuleComporator
    implements Comparator<IModule>
{

    @Override
    public int compare(IModule module1, IModule module2)
    {
        if (module1.getDisplayOrder() < module2.getDisplayOrder())
        {
            return -1;
        }
        else if (module1.getDisplayOrder() == module2.getDisplayOrder())
        {
            return 0;
        }
        return 1;
            
    }
}
